/******************************************************************************
* File       : type_def.h
* Function   : Type definitions.
* Description: To be done.           
* Version    : V1.00
* Author     : Ian
* Date       : 3rd May 2016
* History    :  No.  When           Who           What
*               1    3/May/2016     Ian           Create
******************************************************************************/

#ifndef _TYPE_DEF_H_
#define _TYPE_DEF_H_

#ifdef __cplusplus
extern "C" {
#endif


#include <stdint.h>

/*
// Definition for tpyes
typedef unsigned char         uint8_t;       // Type definition for 8-bit unsigned char
typedef unsigned short int    uint16_t;      // Type definition for 16-bit unsigned short int
typedef unsigned int          uint32_t;      // Type definition for 32-bit unsigned int

typedef signed char           int8_t;        // Type definition for 8-bit signed char
typedef signed short int      int16_t;       // Type definition for 16-bit signed short int
typedef signed int            int32_t;       // Type definition for 32-bit signed int
*/
#define null                  (0)          // Value for NULL pointer

#define SW_OK                 (0x00)          // Return: Successful

#define SW_ERR                (0xFF)          // Return: Failed






#ifdef __cplusplus
}
#endif

#endif /* _TYPE_DEF_H_ */

/* End of file */

